package com.jy.admin.db.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.jy.admin.db.dao.CeMerchantApiDao;
import com.jy.admin.db.entity.CeMerchantApiEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
 * User: anonymous
 * Date: 2022-01-03
 * Time: 18:14:20.163
 */

@Repository
public class CeMerchantApiDaoImpl extends AbstractBaseMapper<CeMerchantApiEntity> implements CeMerchantApiDao {

    @Override
    public CeMerchantApiEntity getApiByMerchantCodeAndType(String merchantCode, Integer apiType) {
        Map<String, Object> params = new HashMap<>();
        params.put("merchantCode", merchantCode);
        params.put("apiType", apiType);
        return getSqlSession().selectOne(this.getStatement("getApiByMerchantCodeAndType"), params);
    }
}